package com.example.gokuplayalong;

import com.alibaba.fastjson.JSONObject;
import com.example.gokuplayalong.bases.alipay.DirectPay;
import com.example.gokuplayalong.bases.base.ExceptionHandler;
import com.example.gokuplayalong.bases.base.Tools;
import com.example.gokuplayalong.bases.mysql.MysqlDruid;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class SurrogateApplication {


    public static void main(String[] args) {
        System.setProperty("org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH", "true");

        SpringApplication.run(SurrogateApplication.class, args);

        initApp();
    }
    private static void initApp() {
        try {
            MysqlDruid.Init();
        } catch (Throwable e) {
            ExceptionHandler.saveException(Thread.currentThread().getStackTrace()[1].getClassName() + Thread.currentThread().getStackTrace()[1].getMethodName() + Thread.currentThread().getStackTrace()[1].getLineNumber(), e);
        }
    }
}
